package io.transaction.msg.stock.service;

import io.transaction.msg.stock.entity.Stock;
import io.transaction.msg.stock.tx.TxMessage;

public interface StockService {

    Stock getStockById(Long id);

    /**
     * 扣减库存
     */
    void decreaseStock(TxMessage txMessage);
}
